home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / msgq160s.arc / CHARSET.C < prev    next >
Text File  |  1991-10-26  |  237b  |  6 lines

  1. typedef char CHARSET[32];
  2. #define CLEARSET(set)     memset(&set[0], 0, 32)
  3. #define ADDTOSET(set, c) set[(unsigned char)c/8] |= (1 << ((unsigned char)c%8))
  4. #define INSET(set, c)     (set[(unsigned char)c/8] & (1 << ((unsigned char)c%8))
  5.  
  6.